package cate.game.role.res.guild.mysterium;

import cate.common.table.d.GDFunc;
import cate.game.role.res.guild.GuildFuncBase;
import cate.game.role.res.guild.po.GuildPO;
import cate.game.role.res.guild.po.GuildFuncDependent;
import easy.java.dev.note.NoteClass;
import easy.java.dev.note.NoteField;

import java.util.HashMap;
import java.util.Map;

@NoteClass(value = "公会秘境")
public class GuildMysteriumPO extends GuildFuncBase {

    @NoteField(value = "挑战中的bossID")
    public int challengeBoss;

    @NoteField(value = "上一次挑战的bossID")
    public int lastBoss;

    @NoteField(value = "boss的详细信息Map", detail = "bossId,boss详细信息")
    public Map<Integer, GuildMysteriumBoss> bossMap;

    @Override
    public void initialize(GuildPO parent) {
        super.initialize(parent);
        if (challengeBoss == 0) {
            challengeBoss = 1;
        }

        if (lastBoss == 0) {
            lastBoss = 1;
        }
        if(bossMap == null){
            bossMap = new HashMap<>();
        }
        updateByExcel();
    }

    private void updateByExcel() {
        // TODO: 2023/5/4 更新map
    }


    @Override
    public int getFuncId() {
        return GDFunc.GuildFunc.MYSTERIUM;
    }

}
